from urllib.request import urlopen
from bs4 import BeautifulSoup
'''获取网页的h1标签'''
html = urlopen('http://120.25.69.79')
bsObj = BeautifulSoup(html)
print(bsObj.html.body.h1)
print(bsObj.body.h1)
print(bsObj.h1)